package com.hwadee.teachingprocessmanagementsystem.service.base;

import com.hwadee.teachingprocessmanagementsystem.entity.ClassroomRequest;

import java.util.List;

/**
 * 教室申请表(ClassroomRequest)表服务接口
 *
 * @author makejava
 * @since 2024-07-11 14:20:02
 */
public interface ClassroomRequestService {

    /**
     * 通过ID查询单条数据
     *
     * @param requestId 主键
     * @return 实例对象
     */
    ClassroomRequest queryById(Integer requestId);

    /**
     * 新增数据
     *
     * @param classroomRequest 实例对象
     * @return 实例对象
     */
    int insert(ClassroomRequest classroomRequest);

    /**
     * 修改数据
     *
     * @param classroomRequest 实例对象
     * @return 实例对象
     */
    ClassroomRequest update(ClassroomRequest classroomRequest);

    /**
     * 通过主键删除数据
     *
     * @param requestId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer requestId);

    List<ClassroomRequest> queryAllByLimit(ClassroomRequest classroomRequest);
}
